package com.example.xxtautosignjava.controller;


import com.example.xxtautosignjava.common.R;
import com.example.xxtautosignjava.entity.IndexShow;
import com.example.xxtautosignjava.service.IndexShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lee
 * @since 2022-09-03
 */
@RestController
@RequestMapping("/xxt/index-show")
public class IndexShowController {
    @Autowired
    IndexShowService showService;

    @GetMapping("gettext")
    public R getTextAndImg(){

        IndexShow byId = showService.getById(1);
        return R.ok().data("show",byId);


    }
}

